/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.hidden {
    display: none !important;
}

/* 容器样式 */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录表单样式 */
.login-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 2rem;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

/* 标签页样式 */
.form-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* 表单提示信息样式 */
.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid #667eea;
    background: #f8f9fa;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* 按钮样式 */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* 主界面样式 */
#main-container {
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    background: #f8f9fa;
}

/* 头部样式 */
.header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    font-size: 1.1rem;
    font-weight: 500;
}

.user-id {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: white;
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #333;
    font-size: 1.5rem;
}

/* 列表容器样式 */
.list-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.list-item:hover {
    background: #f8f9fa;
}

.list-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.item-name:hover {
    color: #667eea;
}

.item-time {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* 功能按钮区域 */


/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
}

/* 旅行计划详情样式 */
.plan-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.plan-detail-header h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.plan-meta span {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.plan-content h4 {
    font-size: 1.2em;
    color: #34495e;
    margin-bottom: 10px;
    font-weight: 600;
}

.edit-area {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.5;
    resize: vertical;
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.edit-area:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* 语音模态框特殊样式 */
.voice-modal {
    max-width: 400px;
}

.voice-input-area {
    text-align: center;
    margin-bottom: 2rem;
}

.voice-status {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.voice-wave {
    height: 40px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-text {
    min-height: 60px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #eee;
}

.voice-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 编辑区域样式 */
.edit-area {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .nav-menu {
        display: flex;
        justify-content: space-around;
    }
    
    .nav-item {
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 0.5rem 1rem;
    }
    
    .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #667eea;
    }
    
    .function-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 2rem;
    }
    
    .voice-btn {
        min-width: auto;
        padding: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 新数据标签样式 */
.new-item {
    position: relative;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    animation: pulse 2s infinite;
}

.new-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    animation: bounce 1s infinite;
}

/* 语音按钮录音状态样式 */
.voice-btn.recording {
    background: linear-gradient(135deg, #ff6b6b 0%, #c44569 100%);
    animation: recording-pulse 1s infinite;
    transform: scale(1.05);
}

.voice-btn.recording .btn-icon {
    animation: recording-icon 1s infinite;
}

.voice-btn.processing {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    animation: processing-pulse 2s ease-in-out infinite;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.voice-btn.processing .btn-icon {
    animation: processing-icon 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes recording-pulse {
    0%, 100% { 
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
        transform: scale(1.05);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        transform: scale(1.08);
    }
}

@keyframes recording-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes processing-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.4);
        transform: scale(1.02);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(78, 205, 196, 0);
        transform: scale(1.03);
    }
}

@keyframes processing-icon {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
    75% { 
        transform: scale(1.1) rotate(270deg);
        opacity: 0.8;
    }
}

/* 顶部导航栏布局 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.user-id {
    font-size: 0.9rem;
    color: #666;
}

/* 功能按钮区域样式 */
.function-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.voice-btn-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.voice-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: 160px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    height: 55px;
    gap: 0.5rem;
}

.voice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.voice-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 600;
    flex-grow: 1;
    text-align: left;
}

.voice-indicator {
    font-size: 0.7rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    text-align: center;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .function-buttons {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .voice-btn-container {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .voice-btn {
        min-width: 140px;
        padding: 0.5rem 1rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.4rem;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
    
    .btn-text {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .voice-indicator {
        font-size: 0.6rem;
        bottom: 0.1rem;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
    }
}

/* 高德地图样式 */
.map-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 100%;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.location-info {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.location-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

#current-location {
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

/* 位置信息状态样式 */
#current-location.location-default {
    color: #666;
}

#current-location.location-loading {
    color: #667eea;
    font-style: italic;
}

#current-location.location-success {
    color: #28a745;
    font-weight: 600;
}

#current-location.location-error {
    color: #dc3545;
    font-weight: 600;
}

/* 地图控制按钮样式 */
#locate-me, #reset-map {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#locate-me {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#locate-me:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#reset-map {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

#reset-map:hover {
    background: #e9ecef;
}

/* 地图标记样式 */
.amap-marker {
    cursor: pointer;
}

/* 响应式地图样式 */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #locate-me, #reset-map {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 万能助手样式 */
.assistant-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.assistant-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.assistant-welcome h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 400;
}

.assistant-input-area {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

#question-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

#question-input:focus {
    outline: none;
    border-color: #667eea;
}

.assistant-input-area .btn-primary {
    margin-top: 1rem;
    width: auto;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.assistant-loading {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.assistant-loading p {
    margin-top: 1rem;
    color: #666;
    font-size: 1rem;
}

.assistant-response {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.response-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.response-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.response-content p {
    margin-bottom: 1rem;
}

.response-content p:last-child {
    margin-bottom: 0;
}

.assistant-history {
    padding: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.history-question {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.history-answer {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.history-time {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* 历史对话按钮样式 */
.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.btn-history {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.btn-history .btn-icon {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.btn-history:hover .btn-icon {
    transform: scale(1.1);
}

.btn-history:first-child {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-history:first-child:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-history:last-child {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.btn-history:last-child:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-history:active {
    transform: translateY(0);
}

/* 历史项悬停效果 */
.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* 响应式助手样式 */
@media (max-width: 768px) {
    .assistant-container {
        margin: 0;
        border-radius: 0;
    }
    
    .assistant-welcome {
        padding: 1.5rem;
    }
    
    .assistant-welcome h3 {
        font-size: 1.1rem;
    }
    
    .assistant-input-area,
    .assistant-loading,
    .assistant-response,
    .assistant-history {
        padding: 1.5rem;
    }
    
    .response-content {
        max-height: 300px;
        font-size: 0.9rem;
    }
    
    .history-list {
        max-height: 250px;
    }
}

/* 路线规划面板样式 */
.route-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    cursor: move;
    user-select: none;
}

/* 路线规划面板移动时的样式 */
.route-panel.moving {
    cursor: grabbing;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.route-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.route-form {
    padding: 1.5rem;
}

.route-form .form-group {
    margin-bottom: 1.5rem;
}

.route-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.route-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.route-form input:focus {
    outline: none;
    border-color: #667eea;
}

.route-form .btn-primary,
.route-form .btn-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
}

.route-results {
    padding: 0 1.5rem 1.5rem;
}

.route-panel-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.route-info {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.route-info p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.route-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #d32f2f;
}

.route-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.route-loading .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 地图控件样式调整 */
.map-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.map-controls .btn-primary,
.map-controls .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 左侧导航栏底部的路线规划结果区域 */
.route-results-sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.route-results-sidebar .route-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.route-results-sidebar .route-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.route-results-sidebar .route-info p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.route-results-sidebar .route-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.route-results-sidebar .route-actions .btn-primary,
.route-results-sidebar .route-actions .btn-secondary {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* 响应式路线规划面板 */
@media (max-width: 768px) {
    .route-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 2000;
    }
    
    .route-form {
        padding: 1rem;
    }
    
    .route-panel-content {
        max-height: 200px;
    }
    
    .route-results-sidebar {
        max-height: 200px;
        padding: 0.8rem;
    }
}